import 'package:flutter/material.dart';

class MSIcon extends StatelessWidget {
  const MSIcon(
    this.name, {
    super.key,
    this.size,
    this.fit,
    this.color,
  });

  final String name;
  final double? size;
  final BoxFit? fit;
  final Color? color;

  @override
  Widget build(BuildContext context) {
    return Image.asset(
      'assets/icons/$name.png',
      width: size,
      height: size,
      fit: fit ?? BoxFit.contain,
      color: color,
    );
  }
}
